/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.client.utils;

/**
 * Created by cherry on 2016/10/26.
 */
public final class SystemConfigUtils {
    private int spcDigit = 6;
    private int grrDigit = 4;
    private static SystemConfigUtils instance;

    private SystemConfigUtils() {
    }

    /**
     * Gets the instance object of the current class
     * when instance is null, it will new a object, otherwise return
     *
     * @return instance object of the current class
     */
    public static SystemConfigUtils getInstance() {
        if (instance == null) {
            instance = new SystemConfigUtils();
        }
        return instance;
    }

    public int getSpcDigit() {
        return spcDigit;
    }

    public void setSpcDigit(int spcDigit) {
        this.spcDigit = spcDigit;
    }

    public int getGrrDigit() {
        return grrDigit;
    }

    public void setGrrDigit(int grrDigit) {
        this.grrDigit = grrDigit;
    }
}
